from django.conf.urls import patterns ,url
from main import views


urlpatterns = patterns('',

	url(r'^$',views.home,name="home"),
	url(r'^test$',views.testView,name="test"),
	url(r'^news/?$',views.newsView,name="news"),
	url(r'^news/(?P<news_id>\d)$',views.detailNews,name="detail"),
	url(r'^sign/?$',views.signView,name="sign"),
	
	url(r'^login/?$',views.loginView,name="login"),
	url(r'^error$',views.errorView,name="error"),	
	url(r'^logout/?$',views.logoutView,name="logout"),

	url(r'^views/(?P<name>\w+)?$',views.lab_views,name="static"),

)
